﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SoundServant.Controls
{
    /// <summary>
    /// Interaction logic for NavTab.xaml
    /// </summary>
    public partial class CongChooserControl : UserControl
    {
        int id;

        public delegate void CongClickedEventHandler(int id);
        public event CongClickedEventHandler CongClicked;

        public CongChooserControl(string _congName, int _id, DayOfWeek _tmssm, DayOfWeek _ptws)
        {
            InitializeComponent();

            id = _id;

            NameLabel.Content = _congName;
            DayDetailsTextBlock.Text = _tmssm.ToString() + "'s & " + _ptws.ToString() + "'s";
        }

        private void UserControl_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (CongClicked != null) CongClicked(id);
        }




    }
}
